<!DOCTYPE html>
<html>
<head>
<title>ceshi</title>

<meta name="keywords" content="keyword1,keyword2,keyword3">
<meta name="description" content="this is my page">
<meta name="content-type" content="text/html; charset=UTF-8">
<script type="text/javascript" src="js/jquery.min.js"></script>

<!--<link rel="stylesheet" type="text/css" href="./styles.css">-->

</head>

<body>
	<button onclick="test2();">测试</button>

	<form action="userManageController/moreImageUpload" method="post"
		enctype="multipart/form-data">
		选择文件:<input type="file" name="files"> 
		选择文件:<input type="file" name="files"> 
		<input type="submit" value="提交">
	</form>

	<script type="text/javascript">
		function test2() {
			alert("come on");
			var content = {
				"userId" : 1,
				"nickname" : "summery",
				"headPortraitUrl" : "{f://1.jpg","f://2.jpg"}",
				
				"creditScore" : 90,
				"tradeName" : "红茶玛奇朵",
				"imageUrl" : "../../myImage/4.jpg",
				"purchasePlace" : "宝龙一期负一楼",
				"address" : "浙江工商大学钱江湾生活区",
				"purchaseStore" : "一点点",
				"contacts" : "大佬",
				"contactsPhone" : "17827384738",
				"reward" : "10元",
				"estimateThePrice" : "13元",
				"courierFees" : "5元",
				"demandCreatetime" : "2017-7-2 11:00",
				"expectedArrivalTime" : "2017-7-2 12:10",
				"acceptTime" : "2017-7-2 11:20",
				"courierAcceptTime" : "2017-7-2 11:40",
				"purchaseState" : "已完成",
				"courierNickname" : "小太阳",
				"purchaseAddress" : "宝龙负一楼一点点",
				"note" : "要小姐姐接单"
			};
			$.ajax({
				type : "post",
				url : "userDemandController/release",
				dataType : "json",
				/* data : content, */
				success : function(data) {
					alert(JSON.stringify(data));
				},
				error : function(data) {
					alert(data);
				}
			});
		}
	</script>
</body>
</html>
